package top.foxhome.productimages.productimages;

import java.util.Locale;
import java.util.ResourceBundle;

public class I18N {
    private static ResourceBundle bundle;

    public static void init(Locale locale) {
        bundle = ResourceBundle.getBundle("messages", locale);
    }

    public static String get(String key) {
        return bundle.getString(key);
    }

    public static ResourceBundle getBundle() {
        return bundle;
    }
}
